{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "pycharm": {
     "is_executing": false
    }
   },
   "outputs": [],
   "source": [
    "import getpass\n",
    "\n",
    "from topolib import IceSat2Data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "pycharm": {
     "is_executing": false
    }
   },
   "outputs": [
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "Earthdata Login password:  ········\n"
     ]
    }
   ],
   "source": [
    "# Earthdata Login credentials\n",
    "# Enter your Earthdata Login user name\n",
    "user_id = 'hpmarshall'\n",
    "# Enter your email address associated with your Earthdata Login account\n",
    "email = 'hpmarshall@boisestate.edu'\n",
    "password = getpass.getpass('Earthdata Login password: ')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "pycharm": {
     "is_executing": false
    }
   },
   "outputs": [],
   "source": [
    "# Specify the variables of interest\n",
    "variables = {\n",
    "    'beams': [\n",
    "        '/land_ice_segments/atl06_quality_summary',\n",
    "        '/land_ice_segments/delta_time',\n",
    "        '/land_ice_segments/h_li',\n",
    "        '/land_ice_segments/h_li_sigma',\n",
    "        '/land_ice_segments/latitude',\n",
    "        '/land_ice_segments/longitude',\n",
    "        '/land_ice_segments/segment_id',\n",
    "        '/land_ice_segments/sigma_geo_h',\n",
    "        '/land_ice_segments/ground_track/x_atc',\n",
    "        '/ancillary_data/atlas_sdp_gps_epoch'\n",
    "    ],\n",
    "    'other': [\n",
    "        '/orbit_info/cycle_number',\n",
    "        '/orbit_info/rgt',\n",
    "        '/orbit_info/orbit_number',\n",
    "    ]\n",
    "}\n",
    "# Area of interest\n",
    "boundaries = {\n",
    "    'LowerLeft_Lon': '-108.3',\n",
    "    'LowerLeft_Lat': '38.8',\n",
    "    'UpperRight_Lon': '-107.5',\n",
    "    'UpperRight_Lat': '39.3',\n",
    "}\n",
    "# Custom time range of interest\n",
    "time_range = {\n",
    "        'start_date': '2018-10-01',\n",
    "        'end_date': '2019-01-01'\n",
    "}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [],
   "source": [
    "# Setup a search session\n",
    "search = IceSat2Data(user_id, password, variables=variables)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['/ancillary_data',\n",
      " '/ancillary_data/atlas_sdp_gps_epoch',\n",
      " '/ancillary_data/control',\n",
      " '/ancillary_data/data_end_utc',\n",
      " '/ancillary_data/data_start_utc',\n",
      " '/ancillary_data/end_cycle',\n",
      " '/ancillary_data/end_delta_time',\n",
      " '/ancillary_data/end_geoseg',\n",
      " '/ancillary_data/end_gpssow',\n",
      " '/ancillary_data/end_gpsweek',\n",
      " '/ancillary_data/end_orbit',\n",
      " '/ancillary_data/end_region',\n",
      " '/ancillary_data/end_rgt',\n",
      " '/ancillary_data/granule_end_utc',\n",
      " '/ancillary_data/granule_start_utc',\n",
      " '/ancillary_data/qa_at_interval',\n",
      " '/ancillary_data/release',\n",
      " '/ancillary_data/start_cycle',\n",
      " '/ancillary_data/start_delta_time',\n",
      " '/ancillary_data/start_geoseg',\n",
      " '/ancillary_data/start_gpssow',\n",
      " '/ancillary_data/start_gpsweek',\n",
      " '/ancillary_data/start_orbit',\n",
      " '/ancillary_data/start_region',\n",
      " '/ancillary_data/start_rgt',\n",
      " '/ancillary_data/version',\n",
      " '/ancillary_data/land_ice',\n",
      " '/ancillary_data/land_ice/dt_hist',\n",
      " '/ancillary_data/land_ice/fit_maxiter',\n",
      " '/ancillary_data/land_ice/fpb_maxiter',\n",
      " '/ancillary_data/land_ice/maxiter',\n",
      " '/ancillary_data/land_ice/max_res_ids',\n",
      " '/ancillary_data/land_ice/min_dist',\n",
      " '/ancillary_data/land_ice/min_gain_th',\n",
      " '/ancillary_data/land_ice/min_n_pe',\n",
      " '/ancillary_data/land_ice/min_n_sel',\n",
      " '/ancillary_data/land_ice/min_signal_conf',\n",
      " '/ancillary_data/land_ice/n_hist',\n",
      " '/ancillary_data/land_ice/nhist_bins',\n",
      " '/ancillary_data/land_ice/n_sigmas',\n",
      " '/ancillary_data/land_ice/proc_interval',\n",
      " '/ancillary_data/land_ice/rbin_width',\n",
      " '/ancillary_data/land_ice/sigma_beam',\n",
      " '/ancillary_data/land_ice/sigma_tx',\n",
      " '/ancillary_data/land_ice/t_dead',\n",
      " '/ancillary_data/land_ice/win_nsig',\n",
      " '/gt1l',\n",
      " '/gt1l/land_ice_segments',\n",
      " '/gt1l/land_ice_segments/atl06_quality_summary',\n",
      " '/gt1l/land_ice_segments/delta_time',\n",
      " '/gt1l/land_ice_segments/h_li',\n",
      " '/gt1l/land_ice_segments/h_li_sigma',\n",
      " '/gt1l/land_ice_segments/latitude',\n",
      " '/gt1l/land_ice_segments/longitude',\n",
      " '/gt1l/land_ice_segments/segment_id',\n",
      " '/gt1l/land_ice_segments/sigma_geo_h',\n",
      " '/gt1l/land_ice_segments/bias_correction',\n",
      " '/gt1l/land_ice_segments/bias_correction/fpb_mean_corr',\n",
      " '/gt1l/land_ice_segments/bias_correction/fpb_mean_corr_sigma',\n",
      " '/gt1l/land_ice_segments/bias_correction/fpb_med_corr',\n",
      " '/gt1l/land_ice_segments/bias_correction/fpb_med_corr_sigma',\n",
      " '/gt1l/land_ice_segments/bias_correction/fpb_n_corr',\n",
      " '/gt1l/land_ice_segments/bias_correction/med_r_fit',\n",
      " '/gt1l/land_ice_segments/bias_correction/tx_mean_corr',\n",
      " '/gt1l/land_ice_segments/bias_correction/tx_med_corr',\n",
      " '/gt1l/land_ice_segments/dem',\n",
      " '/gt1l/land_ice_segments/dem/dem_flag',\n",
      " '/gt1l/land_ice_segments/dem/dem_h',\n",
      " '/gt1l/land_ice_segments/dem/geoid_h',\n",
      " '/gt1l/land_ice_segments/fit_statistics',\n",
      " '/gt1l/land_ice_segments/fit_statistics/dh_fit_dx',\n",
      " '/gt1l/land_ice_segments/fit_statistics/dh_fit_dx_sigma',\n",
      " '/gt1l/land_ice_segments/fit_statistics/dh_fit_dy',\n",
      " '/gt1l/land_ice_segments/fit_statistics/h_expected_rms',\n",
      " '/gt1l/land_ice_segments/fit_statistics/h_mean',\n",
      " '/gt1l/land_ice_segments/fit_statistics/h_rms_misfit',\n",
      " '/gt1l/land_ice_segments/fit_statistics/h_robust_sprd',\n",
      " '/gt1l/land_ice_segments/fit_statistics/n_fit_photons',\n",
      " '/gt1l/land_ice_segments/fit_statistics/n_seg_pulses',\n",
      " '/gt1l/land_ice_segments/fit_statistics/sigma_h_mean',\n",
      " '/gt1l/land_ice_segments/fit_statistics/signal_selection_source',\n",
      " '/gt1l/land_ice_segments/fit_statistics/signal_selection_source_status',\n",
      " '/gt1l/land_ice_segments/fit_statistics/snr',\n",
      " '/gt1l/land_ice_segments/fit_statistics/snr_significance',\n",
      " '/gt1l/land_ice_segments/fit_statistics/w_surface_window_final',\n",
      " '/gt1l/land_ice_segments/geophysical',\n",
      " '/gt1l/land_ice_segments/geophysical/bckgrd',\n",
      " '/gt1l/land_ice_segments/geophysical/bsnow_conf',\n",
      " '/gt1l/land_ice_segments/geophysical/bsnow_h',\n",
      " '/gt1l/land_ice_segments/geophysical/bsnow_od',\n",
      " '/gt1l/land_ice_segments/geophysical/cloud_flg_asr',\n",
      " '/gt1l/land_ice_segments/geophysical/cloud_flg_atm',\n",
      " '/gt1l/land_ice_segments/geophysical/dac',\n",
      " '/gt1l/land_ice_segments/geophysical/e_bckgrd',\n",
      " '/gt1l/land_ice_segments/geophysical/msw_flag',\n",
      " '/gt1l/land_ice_segments/geophysical/neutat_delay_total',\n",
      " '/gt1l/land_ice_segments/geophysical/r_eff',\n",
      " '/gt1l/land_ice_segments/geophysical/solar_azimuth',\n",
      " '/gt1l/land_ice_segments/geophysical/solar_elevation',\n",
      " '/gt1l/land_ice_segments/geophysical/tide_earth',\n",
      " '/gt1l/land_ice_segments/geophysical/tide_load',\n",
      " '/gt1l/land_ice_segments/geophysical/tide_ocean',\n",
      " '/gt1l/land_ice_segments/geophysical/tide_pole',\n",
      " '/gt1l/land_ice_segments/ground_track',\n",
      " '/gt1l/land_ice_segments/ground_track/ref_azimuth',\n",
      " '/gt1l/land_ice_segments/ground_track/ref_coelv',\n",
      " '/gt1l/land_ice_segments/ground_track/seg_azimuth',\n",
      " '/gt1l/land_ice_segments/ground_track/sigma_geo_at',\n",
      " '/gt1l/land_ice_segments/ground_track/sigma_geo_xt',\n",
      " '/gt1l/land_ice_segments/ground_track/x_atc',\n",
      " '/gt1l/land_ice_segments/ground_track/y_atc',\n",
      " '/gt1l/residual_histogram',\n",
      " '/gt1l/residual_histogram/bckgrd_per_bin',\n",
      " '/gt1l/residual_histogram/count',\n",
      " '/gt1l/residual_histogram/delta_time',\n",
      " '/gt1l/residual_histogram/dh',\n",
      " '/gt1l/residual_histogram/ds_segment_id',\n",
      " '/gt1l/residual_histogram/lat_mean',\n",
      " '/gt1l/residual_histogram/lon_mean',\n",
      " '/gt1l/residual_histogram/pulse_count',\n",
      " '/gt1l/residual_histogram/segment_id_list',\n",
      " '/gt1l/residual_histogram/x_atc_mean',\n",
      " '/gt1l/segment_quality',\n",
      " '/gt1l/segment_quality/delta_time',\n",
      " '/gt1l/segment_quality/record_number',\n",
      " '/gt1l/segment_quality/reference_pt_lat',\n",
      " '/gt1l/segment_quality/reference_pt_lon',\n",
      " '/gt1l/segment_quality/segment_id',\n",
      " '/gt1l/segment_quality/signal_selection_source',\n",
      " '/gt1l/segment_quality/signal_selection_status',\n",
      " '/gt1l/segment_quality/signal_selection_status/signal_selection_status_all',\n",
      " '/gt1l/segment_quality/signal_selection_status/signal_selection_status_backup',\n",
      " '/gt1l/segment_quality/signal_selection_status/signal_selection_status_confident',\n",
      " '/gt1r',\n",
      " '/gt1r/land_ice_segments',\n",
      " '/gt1r/land_ice_segments/atl06_quality_summary',\n",
      " '/gt1r/land_ice_segments/delta_time',\n",
      " '/gt1r/land_ice_segments/h_li',\n",
      " '/gt1r/land_ice_segments/h_li_sigma',\n",
      " '/gt1r/land_ice_segments/latitude',\n",
      " '/gt1r/land_ice_segments/longitude',\n",
      " '/gt1r/land_ice_segments/segment_id',\n",
      " '/gt1r/land_ice_segments/sigma_geo_h',\n",
      " '/gt1r/land_ice_segments/bias_correction',\n",
      " '/gt1r/land_ice_segments/bias_correction/fpb_mean_corr',\n",
      " '/gt1r/land_ice_segments/bias_correction/fpb_mean_corr_sigma',\n",
      " '/gt1r/land_ice_segments/bias_correction/fpb_med_corr',\n",
      " '/gt1r/land_ice_segments/bias_correction/fpb_med_corr_sigma',\n",
      " '/gt1r/land_ice_segments/bias_correction/fpb_n_corr',\n",
      " '/gt1r/land_ice_segments/bias_correction/med_r_fit',\n",
      " '/gt1r/land_ice_segments/bias_correction/tx_mean_corr',\n",
      " '/gt1r/land_ice_segments/bias_correction/tx_med_corr',\n",
      " '/gt1r/land_ice_segments/dem',\n",
      " '/gt1r/land_ice_segments/dem/dem_flag',\n",
      " '/gt1r/land_ice_segments/dem/dem_h',\n",
      " '/gt1r/land_ice_segments/dem/geoid_h',\n",
      " '/gt1r/land_ice_segments/fit_statistics',\n",
      " '/gt1r/land_ice_segments/fit_statistics/dh_fit_dx',\n",
      " '/gt1r/land_ice_segments/fit_statistics/dh_fit_dx_sigma',\n",
      " '/gt1r/land_ice_segments/fit_statistics/dh_fit_dy',\n",
      " '/gt1r/land_ice_segments/fit_statistics/h_expected_rms',\n",
      " '/gt1r/land_ice_segments/fit_statistics/h_mean',\n",
      " '/gt1r/land_ice_segments/fit_statistics/h_rms_misfit',\n",
      " '/gt1r/land_ice_segments/fit_statistics/h_robust_sprd',\n",
      " '/gt1r/land_ice_segments/fit_statistics/n_fit_photons',\n",
      " '/gt1r/land_ice_segments/fit_statistics/n_seg_pulses',\n",
      " '/gt1r/land_ice_segments/fit_statistics/sigma_h_mean',\n",
      " '/gt1r/land_ice_segments/fit_statistics/signal_selection_source',\n",
      " '/gt1r/land_ice_segments/fit_statistics/signal_selection_source_status',\n",
      " '/gt1r/land_ice_segments/fit_statistics/snr',\n",
      " '/gt1r/land_ice_segments/fit_statistics/snr_significance',\n",
      " '/gt1r/land_ice_segments/fit_statistics/w_surface_window_final',\n",
      " '/gt1r/land_ice_segments/geophysical',\n",
      " '/gt1r/land_ice_segments/geophysical/bckgrd',\n",
      " '/gt1r/land_ice_segments/geophysical/bsnow_conf',\n",
      " '/gt1r/land_ice_segments/geophysical/bsnow_h',\n",
      " '/gt1r/land_ice_segments/geophysical/bsnow_od',\n",
      " '/gt1r/land_ice_segments/geophysical/cloud_flg_asr',\n",
      " '/gt1r/land_ice_segments/geophysical/cloud_flg_atm',\n",
      " '/gt1r/land_ice_segments/geophysical/dac',\n",
      " '/gt1r/land_ice_segments/geophysical/e_bckgrd',\n",
      " '/gt1r/land_ice_segments/geophysical/msw_flag',\n",
      " '/gt1r/land_ice_segments/geophysical/neutat_delay_total',\n",
      " '/gt1r/land_ice_segments/geophysical/r_eff',\n",
      " '/gt1r/land_ice_segments/geophysical/solar_azimuth',\n",
      " '/gt1r/land_ice_segments/geophysical/solar_elevation',\n",
      " '/gt1r/land_ice_segments/geophysical/tide_earth',\n",
      " '/gt1r/land_ice_segments/geophysical/tide_load',\n",
      " '/gt1r/land_ice_segments/geophysical/tide_ocean',\n",
      " '/gt1r/land_ice_segments/geophysical/tide_pole',\n",
      " '/gt1r/land_ice_segments/ground_track',\n",
      " '/gt1r/land_ice_segments/ground_track/ref_azimuth',\n",
      " '/gt1r/land_ice_segments/ground_track/ref_coelv',\n",
      " '/gt1r/land_ice_segments/ground_track/seg_azimuth',\n",
      " '/gt1r/land_ice_segments/ground_track/sigma_geo_at',\n",
      " '/gt1r/land_ice_segments/ground_track/sigma_geo_xt',\n",
      " '/gt1r/land_ice_segments/ground_track/x_atc',\n",
      " '/gt1r/land_ice_segments/ground_track/y_atc',\n",
      " '/gt1r/residual_histogram',\n",
      " '/gt1r/residual_histogram/bckgrd_per_bin',\n",
      " '/gt1r/residual_histogram/count',\n",
      " '/gt1r/residual_histogram/delta_time',\n",
      " '/gt1r/residual_histogram/dh',\n",
      " '/gt1r/residual_histogram/ds_segment_id',\n",
      " '/gt1r/residual_histogram/lat_mean',\n",
      " '/gt1r/residual_histogram/lon_mean',\n",
      " '/gt1r/residual_histogram/pulse_count',\n",
      " '/gt1r/residual_histogram/segment_id_list',\n",
      " '/gt1r/residual_histogram/x_atc_mean',\n",
      " '/gt1r/segment_quality',\n",
      " '/gt1r/segment_quality/delta_time',\n",
      " '/gt1r/segment_quality/record_number',\n",
      " '/gt1r/segment_quality/reference_pt_lat',\n",
      " '/gt1r/segment_quality/reference_pt_lon',\n",
      " '/gt1r/segment_quality/segment_id',\n",
      " '/gt1r/segment_quality/signal_selection_source',\n",
      " '/gt1r/segment_quality/signal_selection_status',\n",
      " '/gt1r/segment_quality/signal_selection_status/signal_selection_status_all',\n",
      " '/gt1r/segment_quality/signal_selection_status/signal_selection_status_backup',\n",
      " '/gt1r/segment_quality/signal_selection_status/signal_selection_status_confident',\n",
      " '/gt2l',\n",
      " '/gt2l/land_ice_segments',\n",
      " '/gt2l/land_ice_segments/atl06_quality_summary',\n",
      " '/gt2l/land_ice_segments/delta_time',\n",
      " '/gt2l/land_ice_segments/h_li',\n",
      " '/gt2l/land_ice_segments/h_li_sigma',\n",
      " '/gt2l/land_ice_segments/latitude',\n",
      " '/gt2l/land_ice_segments/longitude',\n",
      " '/gt2l/land_ice_segments/segment_id',\n",
      " '/gt2l/land_ice_segments/sigma_geo_h',\n",
      " '/gt2l/land_ice_segments/bias_correction',\n",
      " '/gt2l/land_ice_segments/bias_correction/fpb_mean_corr',\n",
      " '/gt2l/land_ice_segments/bias_correction/fpb_mean_corr_sigma',\n",
      " '/gt2l/land_ice_segments/bias_correction/fpb_med_corr',\n",
      " '/gt2l/land_ice_segments/bias_correction/fpb_med_corr_sigma',\n",
      " '/gt2l/land_ice_segments/bias_correction/fpb_n_corr',\n",
      " '/gt2l/land_ice_segments/bias_correction/med_r_fit',\n",
      " '/gt2l/land_ice_segments/bias_correction/tx_mean_corr',\n",
      " '/gt2l/land_ice_segments/bias_correction/tx_med_corr',\n",
      " '/gt2l/land_ice_segments/dem',\n",
      " '/gt2l/land_ice_segments/dem/dem_flag',\n",
      " '/gt2l/land_ice_segments/dem/dem_h',\n",
      " '/gt2l/land_ice_segments/dem/geoid_h',\n",
      " '/gt2l/land_ice_segments/fit_statistics',\n",
      " '/gt2l/land_ice_segments/fit_statistics/dh_fit_dx',\n",
      " '/gt2l/land_ice_segments/fit_statistics/dh_fit_dx_sigma',\n",
      " '/gt2l/land_ice_segments/fit_statistics/dh_fit_dy',\n",
      " '/gt2l/land_ice_segments/fit_statistics/h_expected_rms',\n",
      " '/gt2l/land_ice_segments/fit_statistics/h_mean',\n",
      " '/gt2l/land_ice_segments/fit_statistics/h_rms_misfit',\n",
      " '/gt2l/land_ice_segments/fit_statistics/h_robust_sprd',\n",
      " '/gt2l/land_ice_segments/fit_statistics/n_fit_photons',\n",
      " '/gt2l/land_ice_segments/fit_statistics/n_seg_pulses',\n",
      " '/gt2l/land_ice_segments/fit_statistics/sigma_h_mean',\n",
      " '/gt2l/land_ice_segments/fit_statistics/signal_selection_source',\n",
      " '/gt2l/land_ice_segments/fit_statistics/signal_selection_source_status',\n",
      " '/gt2l/land_ice_segments/fit_statistics/snr',\n",
      " '/gt2l/land_ice_segments/fit_statistics/snr_significance',\n",
      " '/gt2l/land_ice_segments/fit_statistics/w_surface_window_final',\n",
      " '/gt2l/land_ice_segments/geophysical',\n",
      " '/gt2l/land_ice_segments/geophysical/bckgrd',\n",
      " '/gt2l/land_ice_segments/geophysical/bsnow_conf',\n",
      " '/gt2l/land_ice_segments/geophysical/bsnow_h',\n",
      " '/gt2l/land_ice_segments/geophysical/bsnow_od',\n",
      " '/gt2l/land_ice_segments/geophysical/cloud_flg_asr',\n",
      " '/gt2l/land_ice_segments/geophysical/cloud_flg_atm',\n",
      " '/gt2l/land_ice_segments/geophysical/dac',\n",
      " '/gt2l/land_ice_segments/geophysical/e_bckgrd',\n",
      " '/gt2l/land_ice_segments/geophysical/msw_flag',\n",
      " '/gt2l/land_ice_segments/geophysical/neutat_delay_total',\n",
      " '/gt2l/land_ice_segments/geophysical/r_eff',\n",
      " '/gt2l/land_ice_segments/geophysical/solar_azimuth',\n",
      " '/gt2l/land_ice_segments/geophysical/solar_elevation',\n",
      " '/gt2l/land_ice_segments/geophysical/tide_earth',\n",
      " '/gt2l/land_ice_segments/geophysical/tide_load',\n",
      " '/gt2l/land_ice_segments/geophysical/tide_ocean',\n",
      " '/gt2l/land_ice_segments/geophysical/tide_pole',\n",
      " '/gt2l/land_ice_segments/ground_track',\n",
      " '/gt2l/land_ice_segments/ground_track/ref_azimuth',\n",
      " '/gt2l/land_ice_segments/ground_track/ref_coelv',\n",
      " '/gt2l/land_ice_segments/ground_track/seg_azimuth',\n",
      " '/gt2l/land_ice_segments/ground_track/sigma_geo_at',\n",
      " '/gt2l/land_ice_segments/ground_track/sigma_geo_xt',\n",
      " '/gt2l/land_ice_segments/ground_track/x_atc',\n",
      " '/gt2l/land_ice_segments/ground_track/y_atc',\n",
      " '/gt2l/residual_histogram',\n",
      " '/gt2l/residual_histogram/bckgrd_per_bin',\n",
      " '/gt2l/residual_histogram/count',\n",
      " '/gt2l/residual_histogram/delta_time',\n",
      " '/gt2l/residual_histogram/dh',\n",
      " '/gt2l/residual_histogram/ds_segment_id',\n",
      " '/gt2l/residual_histogram/lat_mean',\n",
      " '/gt2l/residual_histogram/lon_mean',\n",
      " '/gt2l/residual_histogram/pulse_count',\n",
      " '/gt2l/residual_histogram/segment_id_list',\n",
      " '/gt2l/residual_histogram/x_atc_mean',\n",
      " '/gt2l/segment_quality',\n",
      " '/gt2l/segment_quality/delta_time',\n",
      " '/gt2l/segment_quality/record_number',\n",
      " '/gt2l/segment_quality/reference_pt_lat',\n",
      " '/gt2l/segment_quality/reference_pt_lon',\n",
      " '/gt2l/segment_quality/segment_id',\n",
      " '/gt2l/segment_quality/signal_selection_source',\n",
      " '/gt2l/segment_quality/signal_selection_status',\n",
      " '/gt2l/segment_quality/signal_selection_status/signal_selection_status_all',\n",
      " '/gt2l/segment_quality/signal_selection_status/signal_selection_status_backup',\n",
      " '/gt2l/segment_quality/signal_selection_status/signal_selection_status_confident',\n",
      " '/gt2r',\n",
      " '/gt2r/land_ice_segments',\n",
      " '/gt2r/land_ice_segments/atl06_quality_summary',\n",
      " '/gt2r/land_ice_segments/delta_time',\n",
      " '/gt2r/land_ice_segments/h_li',\n",
      " '/gt2r/land_ice_segments/h_li_sigma',\n",
      " '/gt2r/land_ice_segments/latitude',\n",
      " '/gt2r/land_ice_segments/longitude',\n",
      " '/gt2r/land_ice_segments/segment_id',\n",
      " '/gt2r/land_ice_segments/sigma_geo_h',\n",
      " '/gt2r/land_ice_segments/bias_correction',\n",
      " '/gt2r/land_ice_segments/bias_correction/fpb_mean_corr',\n",
      " '/gt2r/land_ice_segments/bias_correction/fpb_mean_corr_sigma',\n",
      " '/gt2r/land_ice_segments/bias_correction/fpb_med_corr',\n",
      " '/gt2r/land_ice_segments/bias_correction/fpb_med_corr_sigma',\n",
      " '/gt2r/land_ice_segments/bias_correction/fpb_n_corr',\n",
      " '/gt2r/land_ice_segments/bias_correction/med_r_fit',\n",
      " '/gt2r/land_ice_segments/bias_correction/tx_mean_corr',\n",
      " '/gt2r/land_ice_segments/bias_correction/tx_med_corr',\n",
      " '/gt2r/land_ice_segments/dem',\n",
      " '/gt2r/land_ice_segments/dem/dem_flag',\n",
      " '/gt2r/land_ice_segments/dem/dem_h',\n",
      " '/gt2r/land_ice_segments/dem/geoid_h',\n",
      " '/gt2r/land_ice_segments/fit_statistics',\n",
      " '/gt2r/land_ice_segments/fit_statistics/dh_fit_dx',\n",
      " '/gt2r/land_ice_segments/fit_statistics/dh_fit_dx_sigma',\n",
      " '/gt2r/land_ice_segments/fit_statistics/dh_fit_dy',\n",
      " '/gt2r/land_ice_segments/fit_statistics/h_expected_rms',\n",
      " '/gt2r/land_ice_segments/fit_statistics/h_mean',\n",
      " '/gt2r/land_ice_segments/fit_statistics/h_rms_misfit',\n",
      " '/gt2r/land_ice_segments/fit_statistics/h_robust_sprd',\n",
      " '/gt2r/land_ice_segments/fit_statistics/n_fit_photons',\n",
      " '/gt2r/land_ice_segments/fit_statistics/n_seg_pulses',\n",
      " '/gt2r/land_ice_segments/fit_statistics/sigma_h_mean',\n",
      " '/gt2r/land_ice_segments/fit_statistics/signal_selection_source',\n",
      " '/gt2r/land_ice_segments/fit_statistics/signal_selection_source_status',\n",
      " '/gt2r/land_ice_segments/fit_statistics/snr',\n",
      " '/gt2r/land_ice_segments/fit_statistics/snr_significance',\n",
      " '/gt2r/land_ice_segments/fit_statistics/w_surface_window_final',\n",
      " '/gt2r/land_ice_segments/geophysical',\n",
      " '/gt2r/land_ice_segments/geophysical/bckgrd',\n",
      " '/gt2r/land_ice_segments/geophysical/bsnow_conf',\n",
      " '/gt2r/land_ice_segments/geophysical/bsnow_h',\n",
      " '/gt2r/land_ice_segments/geophysical/bsnow_od',\n",
      " '/gt2r/land_ice_segments/geophysical/cloud_flg_asr',\n",
      " '/gt2r/land_ice_segments/geophysical/cloud_flg_atm',\n",
      " '/gt2r/land_ice_segments/geophysical/dac',\n",
      " '/gt2r/land_ice_segments/geophysical/e_bckgrd',\n",
      " '/gt2r/land_ice_segments/geophysical/msw_flag',\n",
      " '/gt2r/land_ice_segments/geophysical/neutat_delay_total',\n",
      " '/gt2r/land_ice_segments/geophysical/r_eff',\n",
      " '/gt2r/land_ice_segments/geophysical/solar_azimuth',\n",
      " '/gt2r/land_ice_segments/geophysical/solar_elevation',\n",
      " '/gt2r/land_ice_segments/geophysical/tide_earth',\n",
      " '/gt2r/land_ice_segments/geophysical/tide_load',\n",
      " '/gt2r/land_ice_segments/geophysical/tide_ocean',\n",
      " '/gt2r/land_ice_segments/geophysical/tide_pole',\n",
      " '/gt2r/land_ice_segments/ground_track',\n",
      " '/gt2r/land_ice_segments/ground_track/ref_azimuth',\n",
      " '/gt2r/land_ice_segments/ground_track/ref_coelv',\n",
      " '/gt2r/land_ice_segments/ground_track/seg_azimuth',\n",
      " '/gt2r/land_ice_segments/ground_track/sigma_geo_at',\n",
      " '/gt2r/land_ice_segments/ground_track/sigma_geo_xt',\n",
      " '/gt2r/land_ice_segments/ground_track/x_atc',\n",
      " '/gt2r/land_ice_segments/ground_track/y_atc',\n",
      " '/gt2r/residual_histogram',\n",
      " '/gt2r/residual_histogram/bckgrd_per_bin',\n",
      " '/gt2r/residual_histogram/count',\n",
      " '/gt2r/residual_histogram/delta_time',\n",
      " '/gt2r/residual_histogram/dh',\n",
      " '/gt2r/residual_histogram/ds_segment_id',\n",
      " '/gt2r/residual_histogram/lat_mean',\n",
      " '/gt2r/residual_histogram/lon_mean',\n",
      " '/gt2r/residual_histogram/pulse_count',\n",
      " '/gt2r/residual_histogram/segment_id_list',\n",
      " '/gt2r/residual_histogram/x_atc_mean',\n",
      " '/gt2r/segment_quality',\n",
      " '/gt2r/segment_quality/delta_time',\n",
      " '/gt2r/segment_quality/record_number',\n",
      " '/gt2r/segment_quality/reference_pt_lat',\n",
      " '/gt2r/segment_quality/reference_pt_lon',\n",
      " '/gt2r/segment_quality/segment_id',\n",
      " '/gt2r/segment_quality/signal_selection_source',\n",
      " '/gt2r/segment_quality/signal_selection_status',\n",
      " '/gt2r/segment_quality/signal_selection_status/signal_selection_status_all',\n",
      " '/gt2r/segment_quality/signal_selection_status/signal_selection_status_backup',\n",
      " '/gt2r/segment_quality/signal_selection_status/signal_selection_status_confident',\n",
      " '/gt3l',\n",
      " '/gt3l/land_ice_segments',\n",
      " '/gt3l/land_ice_segments/atl06_quality_summary',\n",
      " '/gt3l/land_ice_segments/delta_time',\n",
      " '/gt3l/land_ice_segments/h_li',\n",
      " '/gt3l/land_ice_segments/h_li_sigma',\n",
      " '/gt3l/land_ice_segments/latitude',\n",
      " '/gt3l/land_ice_segments/longitude',\n",
      " '/gt3l/land_ice_segments/segment_id',\n",
      " '/gt3l/land_ice_segments/sigma_geo_h',\n",
      " '/gt3l/land_ice_segments/bias_correction',\n",
      " '/gt3l/land_ice_segments/bias_correction/fpb_mean_corr',\n",
      " '/gt3l/land_ice_segments/bias_correction/fpb_mean_corr_sigma',\n",
      " '/gt3l/land_ice_segments/bias_correction/fpb_med_corr',\n",
      " '/gt3l/land_ice_segments/bias_correction/fpb_med_corr_sigma',\n",
      " '/gt3l/land_ice_segments/bias_correction/fpb_n_corr',\n",
      " '/gt3l/land_ice_segments/bias_correction/med_r_fit',\n",
      " '/gt3l/land_ice_segments/bias_correction/tx_mean_corr',\n",
      " '/gt3l/land_ice_segments/bias_correction/tx_med_corr',\n",
      " '/gt3l/land_ice_segments/dem',\n",
      " '/gt3l/land_ice_segments/dem/dem_flag',\n",
      " '/gt3l/land_ice_segments/dem/dem_h',\n",
      " '/gt3l/land_ice_segments/dem/geoid_h',\n",
      " '/gt3l/land_ice_segments/fit_statistics',\n",
      " '/gt3l/land_ice_segments/fit_statistics/dh_fit_dx',\n",
      " '/gt3l/land_ice_segments/fit_statistics/dh_fit_dx_sigma',\n",
      " '/gt3l/land_ice_segments/fit_statistics/dh_fit_dy',\n",
      " '/gt3l/land_ice_segments/fit_statistics/h_expected_rms',\n",
      " '/gt3l/land_ice_segments/fit_statistics/h_mean',\n",
      " '/gt3l/land_ice_segments/fit_statistics/h_rms_misfit',\n",
      " '/gt3l/land_ice_segments/fit_statistics/h_robust_sprd',\n",
      " '/gt3l/land_ice_segments/fit_statistics/n_fit_photons',\n",
      " '/gt3l/land_ice_segments/fit_statistics/n_seg_pulses',\n",
      " '/gt3l/land_ice_segments/fit_statistics/sigma_h_mean',\n",
      " '/gt3l/land_ice_segments/fit_statistics/signal_selection_source',\n",
      " '/gt3l/land_ice_segments/fit_statistics/signal_selection_source_status',\n",
      " '/gt3l/land_ice_segments/fit_statistics/snr',\n",
      " '/gt3l/land_ice_segments/fit_statistics/snr_significance',\n",
      " '/gt3l/land_ice_segments/fit_statistics/w_surface_window_final',\n",
      " '/gt3l/land_ice_segments/geophysical',\n",
      " '/gt3l/land_ice_segments/geophysical/bckgrd',\n",
      " '/gt3l/land_ice_segments/geophysical/bsnow_conf',\n",
      " '/gt3l/land_ice_segments/geophysical/bsnow_h',\n",
      " '/gt3l/land_ice_segments/geophysical/bsnow_od',\n",
      " '/gt3l/land_ice_segments/geophysical/cloud_flg_asr',\n",
      " '/gt3l/land_ice_segments/geophysical/cloud_flg_atm',\n",
      " '/gt3l/land_ice_segments/geophysical/dac',\n",
      " '/gt3l/land_ice_segments/geophysical/e_bckgrd',\n",
      " '/gt3l/land_ice_segments/geophysical/msw_flag',\n",
      " '/gt3l/land_ice_segments/geophysical/neutat_delay_total',\n",
      " '/gt3l/land_ice_segments/geophysical/r_eff',\n",
      " '/gt3l/land_ice_segments/geophysical/solar_azimuth',\n",
      " '/gt3l/land_ice_segments/geophysical/solar_elevation',\n",
      " '/gt3l/land_ice_segments/geophysical/tide_earth',\n",
      " '/gt3l/land_ice_segments/geophysical/tide_load',\n",
      " '/gt3l/land_ice_segments/geophysical/tide_ocean',\n",
      " '/gt3l/land_ice_segments/geophysical/tide_pole',\n",
      " '/gt3l/land_ice_segments/ground_track',\n",
      " '/gt3l/land_ice_segments/ground_track/ref_azimuth',\n",
      " '/gt3l/land_ice_segments/ground_track/ref_coelv',\n",
      " '/gt3l/land_ice_segments/ground_track/seg_azimuth',\n",
      " '/gt3l/land_ice_segments/ground_track/sigma_geo_at',\n",
      " '/gt3l/land_ice_segments/ground_track/sigma_geo_xt',\n",
      " '/gt3l/land_ice_segments/ground_track/x_atc',\n",
      " '/gt3l/land_ice_segments/ground_track/y_atc',\n",
      " '/gt3l/residual_histogram',\n",
      " '/gt3l/residual_histogram/bckgrd_per_bin',\n",
      " '/gt3l/residual_histogram/count',\n",
      " '/gt3l/residual_histogram/delta_time',\n",
      " '/gt3l/residual_histogram/dh',\n",
      " '/gt3l/residual_histogram/ds_segment_id',\n",
      " '/gt3l/residual_histogram/lat_mean',\n",
      " '/gt3l/residual_histogram/lon_mean',\n",
      " '/gt3l/residual_histogram/pulse_count',\n",
      " '/gt3l/residual_histogram/segment_id_list',\n",
      " '/gt3l/residual_histogram/x_atc_mean',\n",
      " '/gt3l/segment_quality',\n",
      " '/gt3l/segment_quality/delta_time',\n",
      " '/gt3l/segment_quality/record_number',\n",
      " '/gt3l/segment_quality/reference_pt_lat',\n",
      " '/gt3l/segment_quality/reference_pt_lon',\n",
      " '/gt3l/segment_quality/segment_id',\n",
      " '/gt3l/segment_quality/signal_selection_source',\n",
      " '/gt3l/segment_quality/signal_selection_status',\n",
      " '/gt3l/segment_quality/signal_selection_status/signal_selection_status_all',\n",
      " '/gt3l/segment_quality/signal_selection_status/signal_selection_status_backup',\n",
      " '/gt3l/segment_quality/signal_selection_status/signal_selection_status_confident',\n",
      " '/gt3r',\n",
      " '/gt3r/land_ice_segments',\n",
      " '/gt3r/land_ice_segments/atl06_quality_summary',\n",
      " '/gt3r/land_ice_segments/delta_time',\n",
      " '/gt3r/land_ice_segments/h_li',\n",
      " '/gt3r/land_ice_segments/h_li_sigma',\n",
      " '/gt3r/land_ice_segments/latitude',\n",
      " '/gt3r/land_ice_segments/longitude',\n",
      " '/gt3r/land_ice_segments/segment_id',\n",
      " '/gt3r/land_ice_segments/sigma_geo_h',\n",
      " '/gt3r/land_ice_segments/bias_correction',\n",
      " '/gt3r/land_ice_segments/bias_correction/fpb_mean_corr',\n",
      " '/gt3r/land_ice_segments/bias_correction/fpb_mean_corr_sigma',\n",
      " '/gt3r/land_ice_segments/bias_correction/fpb_med_corr',\n",
      " '/gt3r/land_ice_segments/bias_correction/fpb_med_corr_sigma',\n",
      " '/gt3r/land_ice_segments/bias_correction/fpb_n_corr',\n",
      " '/gt3r/land_ice_segments/bias_correction/med_r_fit',\n",
      " '/gt3r/land_ice_segments/bias_correction/tx_mean_corr',\n",
      " '/gt3r/land_ice_segments/bias_correction/tx_med_corr',\n",
      " '/gt3r/land_ice_segments/dem',\n",
      " '/gt3r/land_ice_segments/dem/dem_flag',\n",
      " '/gt3r/land_ice_segments/dem/dem_h',\n",
      " '/gt3r/land_ice_segments/dem/geoid_h',\n",
      " '/gt3r/land_ice_segments/fit_statistics',\n",
      " '/gt3r/land_ice_segments/fit_statistics/dh_fit_dx',\n",
      " '/gt3r/land_ice_segments/fit_statistics/dh_fit_dx_sigma',\n",
      " '/gt3r/land_ice_segments/fit_statistics/dh_fit_dy',\n",
      " '/gt3r/land_ice_segments/fit_statistics/h_expected_rms',\n",
      " '/gt3r/land_ice_segments/fit_statistics/h_mean',\n",
      " '/gt3r/land_ice_segments/fit_statistics/h_rms_misfit',\n",
      " '/gt3r/land_ice_segments/fit_statistics/h_robust_sprd',\n",
      " '/gt3r/land_ice_segments/fit_statistics/n_fit_photons',\n",
      " '/gt3r/land_ice_segments/fit_statistics/n_seg_pulses',\n",
      " '/gt3r/land_ice_segments/fit_statistics/sigma_h_mean',\n",
      " '/gt3r/land_ice_segments/fit_statistics/signal_selection_source',\n",
      " '/gt3r/land_ice_segments/fit_statistics/signal_selection_source_status',\n",
      " '/gt3r/land_ice_segments/fit_statistics/snr',\n",
      " '/gt3r/land_ice_segments/fit_statistics/snr_significance',\n",
      " '/gt3r/land_ice_segments/fit_statistics/w_surface_window_final',\n",
      " '/gt3r/land_ice_segments/geophysical',\n",
      " '/gt3r/land_ice_segments/geophysical/bckgrd',\n",
      " '/gt3r/land_ice_segments/geophysical/bsnow_conf',\n",
      " '/gt3r/land_ice_segments/geophysical/bsnow_h',\n",
      " '/gt3r/land_ice_segments/geophysical/bsnow_od',\n",
      " '/gt3r/land_ice_segments/geophysical/cloud_flg_asr',\n",
      " '/gt3r/land_ice_segments/geophysical/cloud_flg_atm',\n",
      " '/gt3r/land_ice_segments/geophysical/dac',\n",
      " '/gt3r/land_ice_segments/geophysical/e_bckgrd',\n",
      " '/gt3r/land_ice_segments/geophysical/msw_flag',\n",
      " '/gt3r/land_ice_segments/geophysical/neutat_delay_total',\n",
      " '/gt3r/land_ice_segments/geophysical/r_eff',\n",
      " '/gt3r/land_ice_segments/geophysical/solar_azimuth',\n",
      " '/gt3r/land_ice_segments/geophysical/solar_elevation',\n",
      " '/gt3r/land_ice_segments/geophysical/tide_earth',\n",
      " '/gt3r/land_ice_segments/geophysical/tide_load',\n",
      " '/gt3r/land_ice_segments/geophysical/tide_ocean',\n",
      " '/gt3r/land_ice_segments/geophysical/tide_pole',\n",
      " '/gt3r/land_ice_segments/ground_track',\n",
      " '/gt3r/land_ice_segments/ground_track/ref_azimuth',\n",
      " '/gt3r/land_ice_segments/ground_track/ref_coelv',\n",
      " '/gt3r/land_ice_segments/ground_track/seg_azimuth',\n",
      " '/gt3r/land_ice_segments/ground_track/sigma_geo_at',\n",
      " '/gt3r/land_ice_segments/ground_track/sigma_geo_xt',\n",
      " '/gt3r/land_ice_segments/ground_track/x_atc',\n",
      " '/gt3r/land_ice_segments/ground_track/y_atc',\n",
      " '/gt3r/residual_histogram',\n",
      " '/gt3r/residual_histogram/bckgrd_per_bin',\n",
      " '/gt3r/residual_histogram/count',\n",
      " '/gt3r/residual_histogram/delta_time',\n",
      " '/gt3r/residual_histogram/dh',\n",
      " '/gt3r/residual_histogram/ds_segment_id',\n",
      " '/gt3r/residual_histogram/lat_mean',\n",
      " '/gt3r/residual_histogram/lon_mean',\n",
      " '/gt3r/residual_histogram/pulse_count',\n",
      " '/gt3r/residual_histogram/segment_id_list',\n",
      " '/gt3r/residual_histogram/x_atc_mean',\n",
      " '/gt3r/segment_quality',\n",
      " '/gt3r/segment_quality/delta_time',\n",
      " '/gt3r/segment_quality/record_number',\n",
      " '/gt3r/segment_quality/reference_pt_lat',\n",
      " '/gt3r/segment_quality/reference_pt_lon',\n",
      " '/gt3r/segment_quality/segment_id',\n",
      " '/gt3r/segment_quality/signal_selection_source',\n",
      " '/gt3r/segment_quality/signal_selection_status',\n",
      " '/gt3r/segment_quality/signal_selection_status/signal_selection_status_all',\n",
      " '/gt3r/segment_quality/signal_selection_status/signal_selection_status_backup',\n",
      " '/gt3r/segment_quality/signal_selection_status/signal_selection_status_confident',\n",
      " '/orbit_info',\n",
      " '/orbit_info/crossing_time',\n",
      " '/orbit_info/cycle_number',\n",
      " '/orbit_info/lan',\n",
      " '/orbit_info/orbit_number',\n",
      " '/orbit_info/rgt',\n",
      " '/orbit_info/sc_orient',\n",
      " '/orbit_info/sc_orient_time',\n",
      " '/quality_assessment',\n",
      " '/quality_assessment/qa_granule_fail_reason',\n",
      " '/quality_assessment/qa_granule_pass_fail',\n",
      " '/quality_assessment/gt1l',\n",
      " '/quality_assessment/gt1l/delta_time',\n",
      " '/quality_assessment/gt1l/lat_mean',\n",
      " '/quality_assessment/gt1l/lon_mean',\n",
      " '/quality_assessment/gt1l/signal_selection_source_fraction_0',\n",
      " '/quality_assessment/gt1l/signal_selection_source_fraction_1',\n",
      " '/quality_assessment/gt1l/signal_selection_source_fraction_2',\n",
      " '/quality_assessment/gt1l/signal_selection_source_fraction_3',\n",
      " '/quality_assessment/gt1r',\n",
      " '/quality_assessment/gt1r/delta_time',\n",
      " '/quality_assessment/gt1r/lat_mean',\n",
      " '/quality_assessment/gt1r/lon_mean',\n",
      " '/quality_assessment/gt1r/signal_selection_source_fraction_0',\n",
      " '/quality_assessment/gt1r/signal_selection_source_fraction_1',\n",
      " '/quality_assessment/gt1r/signal_selection_source_fraction_2',\n",
      " '/quality_assessment/gt1r/signal_selection_source_fraction_3',\n",
      " '/quality_assessment/gt2l',\n",
      " '/quality_assessment/gt2l/delta_time',\n",
      " '/quality_assessment/gt2l/lat_mean',\n",
      " '/quality_assessment/gt2l/lon_mean',\n",
      " '/quality_assessment/gt2l/signal_selection_source_fraction_0',\n",
      " '/quality_assessment/gt2l/signal_selection_source_fraction_1',\n",
      " '/quality_assessment/gt2l/signal_selection_source_fraction_2',\n",
      " '/quality_assessment/gt2l/signal_selection_source_fraction_3',\n",
      " '/quality_assessment/gt2r',\n",
      " '/quality_assessment/gt2r/delta_time',\n",
      " '/quality_assessment/gt2r/lat_mean',\n",
      " '/quality_assessment/gt2r/lon_mean',\n",
      " '/quality_assessment/gt2r/signal_selection_source_fraction_0',\n",
      " '/quality_assessment/gt2r/signal_selection_source_fraction_1',\n",
      " '/quality_assessment/gt2r/signal_selection_source_fraction_2',\n",
      " '/quality_assessment/gt2r/signal_selection_source_fraction_3',\n",
      " '/quality_assessment/gt3l',\n",
      " '/quality_assessment/gt3l/delta_time',\n",
      " '/quality_assessment/gt3l/lat_mean',\n",
      " '/quality_assessment/gt3l/lon_mean',\n",
      " '/quality_assessment/gt3l/signal_selection_source_fraction_0',\n",
      " '/quality_assessment/gt3l/signal_selection_source_fraction_1',\n",
      " '/quality_assessment/gt3l/signal_selection_source_fraction_2',\n",
      " '/quality_assessment/gt3l/signal_selection_source_fraction_3',\n",
      " '/quality_assessment/gt3r',\n",
      " '/quality_assessment/gt3r/delta_time',\n",
      " '/quality_assessment/gt3r/lat_mean',\n",
      " '/quality_assessment/gt3r/lon_mean',\n",
      " '/quality_assessment/gt3r/signal_selection_source_fraction_0',\n",
      " '/quality_assessment/gt3r/signal_selection_source_fraction_1',\n",
      " '/quality_assessment/gt3r/signal_selection_source_fraction_2',\n",
      " '/quality_assessment/gt3r/signal_selection_source_fraction_3']\n",
      "['NetCDF-3', 'NetCDF4-CF', 'TABULAR_ASCII', 'Shapefile', 'No reformatting']\n"
     ]
    }
   ],
   "source": [
    "# Show available variables\n",
    "search.show_variables()\n",
    "\n",
    "# Show available formats\n",
    "search.show_formats()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Number of granules:\n",
      "    14\n",
      "Average size of granules in MB:\n",
      "    21.039645126892857\n",
      "Total size in MB:\n",
      "    294.55503177649996\n",
      "Number of granules:\n",
      "    7\n",
      "Average size of granules in MB:\n",
      "    17.963842255728572\n",
      "Total size in MB:\n",
      "    125.7468957901\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "7"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Search for granules in bounding box without download through all datasets\n",
    "search.search_granules(bounding_box=boundaries)\n",
    "\n",
    "# Search for granules in bounding box without download for specific time range\n",
    "search.search_granules(bounding_box=boundaries, time_range=time_range)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Number of granules:\n",
      "    14\n",
      "Average size of granules in MB:\n",
      "    21.039645126892857\n",
      "Total size in MB:\n",
      "    294.55503177649996\n",
      "Order:  1\n",
      "Request HTTP response:  201\n",
      "order ID:  5000000320364\n",
      "Data request  1  is submitting...\n",
      "Initial request status is  processing\n",
      "Status is not complete. Trying again.\n",
      "Retry request status is:  complete_with_errors\n",
      "error messages:\n",
      "['161028994:NoMatchingData - No data found that matched subset constraints. '\n",
      " 'Exit code 3.',\n",
      " '161152465:NoMatchingData - No data found that matched subset constraints. '\n",
      " 'Exit code 3.',\n",
      " '161084250:NoMatchingData - No data found that matched subset constraints. '\n",
      " 'Exit code 3.',\n",
      " '161255398:NoMatchingData - No data found that matched subset constraints. '\n",
      " 'Exit code 3.',\n",
      " 'PT2.274S',\n",
      " 'ICESAT2']\n",
      "Beginning download of zipped output...\n",
      "Data request 1 is complete.\n",
      "Order:  2\n",
      "Request HTTP response:  201\n",
      "order ID:  5000000320365\n",
      "Data request  2  is submitting...\n",
      "Initial request status is  processing\n",
      "Status is not complete. Trying again.\n",
      "Retry request status is:  complete_with_errors\n",
      "error messages:\n",
      "['161334410:NoMatchingData - No data found that matched subset constraints. '\n",
      " 'Exit code 3.',\n",
      " '161322380:NoMatchingData - No data found that matched subset constraints. '\n",
      " 'Exit code 3.',\n",
      " 'PT1.396S',\n",
      " 'ICESAT2']\n",
      "Beginning download of zipped output...\n",
      "Data request 2 is complete.\n"
     ]
    }
   ],
   "source": [
    "# Submit a download order to NSIDC with no time restriction\n",
    "search.order_data(\n",
    "    email,\n",
    "    '/Users/hpm/HP_DRIVE/ICESat2-hackweek/topohack/data/',\n",
    "    boundaries,\n",
    ")\n",
    "\n",
    "# # Submit a download order to NSIDC with no time restriction\n",
    "# search.order_data(\n",
    "#     email,\n",
    "#     '/home/jovyan/data/',\n",
    "#     boundaries,\n",
    "#     time_range=time_range    \n",
    "# )"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.7"
  },
  "pycharm": {
   "stem_cell": {
    "cell_type": "raw",
    "metadata": {
     "collapsed": false
    },
    "source": []
   }
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
